import { defineStore } from 'pinia'

export const useDispatchManage = defineStore('DispatchManage', {
  state: () => ({
    map: '',
    scid: '',
    scCode: '',
    // 水文加载后存储的断面信息
    secRes: [],
    showRes: false,
    swTime: [],
    status: '',
    lableVal: ''
  }),

  actions: {}
})
export const useDispatchManageBlkcd = defineStore('DispatchManageBlkcd', {
  state: () => ({
    blkcd: '',
    showDialogResult:false,
    showDialogResultGc:false,
    scid:'',
    waterFlag:1,
    scNameObj:{},
  }),

  actions: {}
})
export const useDispatchManageBlkcdGc = defineStore('DispatchManageBlkcdGc', {
  state: () => ({
    blkcdGc: ''
  }),

  actions: {}
})
export const useDispatchManage1 = defineStore('DispatchManage1', {
  state: () => ({
    // 左侧选择的预报名称
    leftSelectList: '',
    scidDialog: '',
    watershedId: '',
    // 工程调度

    fatherId: '',
    fatherTypeId: '',
    ins: {}
  }),

  actions: {}
})
export const useDispatchManageRowIndex = defineStore('DispatchManageRowIndex', {
  state: () => ({
    rowIndex: 0
  }),

  actions: {}
})
export const useModelParams = defineStore('ModelParams', {
  state: () => ({
    saveFormParams: [],
    modelSchemeList:[],
    modelSchemeDetail:[]
  })
})
